#include "confirmdialog.h"
#include "ui_confirmdialog.h"

ConfirmDialog::ConfirmDialog(QWidget *parent) :
    QThemeableDialog(parent),
    ui(new Ui::ConfirmDialog)
{
    ui->setupUi(this);
}

ConfirmDialog::~ConfirmDialog()
{
    delete ui;
}

void ConfirmDialog::changeEvent(QEvent *e)
{
    QDialog::changeEvent(e);
    switch (e->type()) {
    case QEvent::LanguageChange:
        ui->retranslateUi(this);
        break;
    default:
        break;
    }
}

void ConfirmDialog::setQuestion(QString text)
{
    ui->lbQuestion->setText(text);
}

void ConfirmDialog::setStandardButtons ( QDialogButtonBox::StandardButtons buttons )
{
    ui->buttonBox->setStandardButtons(buttons);
}

bool ConfirmDialog::showAgain()
{
    return ui->ckAskAgain->isChecked();
}
